package com.zhuss.core.datasource1.dao.ext;

import com.zhuss.core.datasource1.dao.gen.RoomMapper;
import com.zhuss.core.datasource1.entity.Room;
import com.zhuss.bean.bo.core.room.SearchRoomBo;
import com.zhuss.bean.vo.core.room.ListRoomVo;
import com.zhuss.bean.vo.core.room.DetailRoomVo;

import java.util.List;

import org.apache.ibatis.annotations.*;

import com.zhuss.core.db.dao.gen.*;

/**
 * @description: 小区楼栋单元下门牌号数据库Dao
 * @author: zhushanshuo
 * @create: Fri May 28 23:03:52 CST 2021
 **/

@Mapper
public interface RoomDao extends RoomMapper {
	
	//void batchCreate();
	Long selectMaxIncr();
	
	void create(Room record);
	
	void delete(Room record);

	List<Room> listAll();

	List<Room> listById(@Param("roomIdList") List<Long> roomIdList);
	
	List<Room> listByName(@Param("name") String name);
	
	List<ListRoomVo> list(SearchRoomBo bo);
	
	Integer countList(SearchRoomBo bo);

	DetailRoomVo detail(@Param("roomId") Long roomId);

}
